package cn.tedu.charging.device.dao.repository.impl;


import cn.tedu.charging.device.dao.mapper.StationMapper;
import cn.tedu.charging.device.dao.repository.StationRepository;
import cn.tedu.charging.device.pojo.po.StationPO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public class StationRepositoryImpl
        implements StationRepository {

    @Autowired
    private StationMapper stationMapper;

    @Override
    public List<StationPO> getAllStation() {
        //selectList 返回的是列表
        //入参 queryWrapper 是查询条件
        //传 null 表示查询所有
        return stationMapper.selectList(null);
    }
}
